package com.ybb.production.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.yubb.common.annotation.Excel;
import com.yubb.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 裁单信息对象 garment_production_cutting_bed_info
 *
 * @author ruoyi
 * @date 2023-09-09
 */
public class GarmentProductionCuttingBedInfo extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 裁单id
     */
    @ApiModelProperty(value = "裁单id")
    private Long id;

    /**
     * 订单id
     */
    @ApiModelProperty(value = "订单id")
    @Excel(name = "订单id")
    private Long orderId;

    /**
     * 床号
     */
    @ApiModelProperty(value = "床号")
    @Excel(name = "床号")
    private String bedNo;

    /**
     * 交货日期
     */
    @ApiModelProperty(value = "交货日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "交货日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date deliveryTime;

    /**
     * 裁剪日期
     */
    @ApiModelProperty(value = "裁剪日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "裁剪日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date cutDate;

    /**
     * 颜色
     */
    @ApiModelProperty(value = "颜色")
    @Excel(name = "颜色")
    private String color;

    /**
     * 尺码
     */
    @ApiModelProperty(value = "尺码")
    @Excel(name = "尺码")
    private String size;

    /**
     * 编菲类型（1代表方式一，2代表方式二）
     */
    @ApiModelProperty(value = "编菲类型（1代表方式一，2代表方式二）")
    @Excel(name = "编菲类型", readConverterExp = "1=代表方式一，2代表方式二")
    private String bianfeiType;

    /**
     * 删除标志（0代表存在 1代表删除）
     */
    @ApiModelProperty(value = "删除标志（0代表存在 1代表删除）")
    private String delFlag;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    public Long getOrderId() {
        return orderId;
    }

    public void setbedNo(String bedNo) {
        this.bedNo = bedNo;
    }

    public String getbedNo() {
        return bedNo;
    }

    public void setdeliveryTime(Date deliveryTime) {
        this.deliveryTime = deliveryTime;
    }

    public Date getdeliveryTime() {
        return deliveryTime;
    }

    public void setCutDate(Date cutDate) {
        this.cutDate = cutDate;
    }

    public Date getCutDate() {
        return cutDate;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public String getColor() {
        return color;
    }

    public void setSize(String size) {
        this.size = size;
    }

    public String getSize() {
        return size;
    }

    public void setBianfeiType(String bianfeiType) {
        this.bianfeiType = bianfeiType;
    }

    public String getBianfeiType() {
        return bianfeiType;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public String getDelFlag() {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("orderId", getOrderId())
                .append("bedNo", getbedNo())
                .append("deliveryTime", getdeliveryTime())
                .append("cutDate", getCutDate())
                .append("color", getColor())
                .append("size", getSize())
                .append("bianfeiType", getBianfeiType())
                .append("delFlag", getDelFlag())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }
}
